import request from '@/utils/request';
import { rsaEncrypt } from '@/utils/commonUtil3';

// 获取大屏用户列表
export function getScreenUserInfo(data) {
	return request({
		url: '/screenUser/select',
		method: 'get',
		params: data
	});
}

// 获取供应商列表
export function getSupplierList(data) {
	return request({
		url: '/screenUser/supplierList',
		method: 'get',
		params: data
	});
}

// 创建大屏用户
export function createScreenUser(data) {
	const data1 = rsaEncrypt(data);
	return request({
		url: '/screenUser/insert',
		method: 'post',
		data: {
			data: data1
		}
	});
}

// 修改大屏用户
export function updateScreenUser(data) {
	const data1 = rsaEncrypt(data);
	return request({
		url: '/screenUser/update',
		method: 'put',
		data: {
			data: data1
		}
	});
}

// 删除大屏用户
export function deleteScreenUser(data) {
	const data1 = rsaEncrypt(data);
	return request({
		url: '/screenUser/delete',
		method: 'delete',
		data: {
			data: data1
		}
	});
}
